//
//  BSAddPeronTableViewCell.m
//  UITableView-02
//
//  Created by zhang on 16/4/14.
//  Copyright © 2016年 zhang. All rights reserved.
//

#import "UIView+WLFrame.h"
#import "BSAddPeronTableViewCell.h"

@implementation BSAddPeronTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self addSubView];
    }
    
    return self;
}

- (void)addSubView{

    self.iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kMartin5, kMartin10, 49, 49)];
    self.iconImageView.backgroundColor = [UIColor greenColor];
    self.iconImageView.image = [UIImage imageNamed:@"sz_addple_icon.png"];
    [self.contentView addSubview:_iconImageView];
    
    self.nameLB = [[UILabel alloc]initWithFrame:CGRectMake(self.iconImageView.right + 5, self.iconImageView.top, 150, kMartin25)];
    self.nameLB.font = [UIFont systemFontOfSize:18];
//    self.nameLB.backgroundColor = [UIColor greenColor];
    [self.contentView addSubview:_nameLB];
    
    self.phoneNumberLB = [[UILabel alloc]initWithFrame:CGRectMake(self.nameLB.left, self.nameLB.bottom, 200, kMartin20)];
    self.phoneNumberLB.font = [UIFont systemFontOfSize:15];
//    self.phoneNumberLB.backgroundColor = [UIColor greenColor];
    [self.contentView addSubview:_phoneNumberLB];
    
    
    self.addBT = BSButton;
    self.addBT.frame  =CGRectMake(kScrenWidth - kMartin100, self.nameLB.top, kMartin80, kMartin40);
    [self.addBT setBackgroundImage:[UIImage imageNamed:@"add_addpeople.png"] forState:(UIControlStateNormal)];

    self.addBT.hidden  = YES;
    [self.contentView addSubview:_addBT];
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
